<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <h:outputStylesheet name="./css/default.css"/>
        <h:outputStylesheet name="./css/cssLayout.css"/>
        <h:outputStylesheet library="css" name="estilo.css" />                
        <h:outputStylesheet library="css" name="login.css" />                
        <title>SGH</title>
    </h:head>

    <h:body> 
        <div id="menu">           
            <h:form>
                <p:menubar styleClass="menu">
                    <p:menuitem value="Home" url="/home.faces" />
                    <p:submenu label="Cadastro" styleClass="menu">
                        <p:menuitem value="Acervo" url="/admin/acervo.faces" />
                        <p:menuitem value="Funcionario" url="/admin/funcionario.faces" />
                        <p:menuitem value="Genero" url="/admin/genero.faces" />
                        <p:menuitem value="Titulo" url="/admin/titulo.faces" />
                    </p:submenu>
                    <p:submenu label="Emprestimo" styleClass="menu">
                        <p:menuitem value="Consultar Acervo" url="/consAcervo.faces" />                          
                        <p:menuitem value="Emprestimo" url="/restrito/emprestimo.faces" />   
                        <p:menuitem value="Devolução" url="/restrito/devolucao.faces" />                        
                    </p:submenu>
                </p:menubar>
            </h:form> 
        </div>
        <div id="cab">
            <h5 style="color: purple; float: left; padding: 5px;">Matricula.: #{request.remoteUser}</h5>
            <a id="logoff" href="#{facesContext.externalContext.requestContextPath}/j_spring_security_logout">
                <h4>Sair</h4>
            </a>
        </div>

        <div id="content" class="center_content">
            <ui:insert name="content">Content</ui:insert>
        </div>

        <div id="bottom">
            <ui:insert name="bottom">
                <div id="footer"> &copy; 2014 Humberto A. de Oliveira - All rights reserved </div>
            </ui:insert>
        </div>           
    </h:body>

</html>
